<?php
/**
 * Created by PhpStorm.
 * User: zhangtao
 * Date: 16-5-22
 * Time: 下午2:44
 */

namespace Home\Model;

use Think\Model\RelationModel;

class StoreModel extends RelationModel
{
    protected $_link = array(
        'dish' => array(
            'mapping_type' => self::HAS_MANY,
            'foreign_key' => 'store_id',
           // 'mapping_fields' => 'type',
        ),
    );
}